package com.service;

import com.pojo.Order;
import com.vo.OrdersVo;

import java.security.Principal;
import java.util.List;

/**
 * @author mornd
 * @date 2020/12/1 - 15:03
 */
public interface OrdersService {
    /**
     * 添加订单
     * @param order
     * @return
     */
    int addOrders(Principal principal, Order order);

    /**
     * 查询订单集合
     * @param ordersVo
     * @return
     */
    List<Order> findOrderList(OrdersVo ordersVo);

    /**
     * 确认订单
     * @param ids
     * @return
     */
    boolean confirmOrders(List<Integer> ids);
}
